import { Utility } from "@/libs/utility"
export const SamplingTimePointFormConfig = (item) => {
  return [
  {
    fieldName: "id",
    fieldCNName: "",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "",
  },
  {
    fieldName: "drugNo",
    fieldCNName: "基于给药序号",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "select",
    rules: {
      required: true, // 只有为true的时候才写，为false这个字段不要
    },
    span: 2,
    itemList: item
  },
  {
    fieldName: "baseDrugTime",
    fieldCNName: "基于给药时间",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "select",
    rules: {
      required: true, // 只有为true的时候才写，为false这个字段不要
    },
    itemList: Utility.getDictList("base_time"),
    span: 2,
  },
  {
    fieldName: "timePoint",
    fieldCNName: "时间点",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "inputText",
    rules: {
      required: true, // 只有为true的时候才写，为false这个字段不要
    },
    span: 2,
  },
  {
    fieldName: "ttwSizeof",
    fieldCNName: "时间窗运算符",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "select",
    span: 2,
    itemList: Utility.getDictList("ttw_sizeof"),
    rules: {
      required: true, // 只有为true的时候才写，为false这个字段不要
    },
  },
  {
    fieldName: "ttwValue",
    fieldCNName: "时间窗值",
    filedValue: "",
    span: 2,
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "inputNumber",
  },
  {
    fieldName: "ttwUnit",
    fieldCNName: "时间窗单位",
    filedValue: "",
    span: 2,
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "select",
    itemList: Utility.getDictList("ttw_unit"),
    rules: {
      required: true, // 只有为true的时候才写，为false这个字段不要
    },
  },
  {
    fieldName: "remarks",
    fieldCNName: "样品采集点描述",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "textarea",
  },
];
}
